import request from '@/utils/request'

export const cartGetInfo = () => request.get('/api/carts')

export const cartAdd = (itemInfo) => request.post('/api/carts', itemInfo)

export const caetDel = (id) => request.delete('/api/carts/' + id)

export const cartAddItem = (itemNum) => request.put('/api/carts', itemNum)
